package com.heima.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.List;

/**
 * 分页结果
 * @param <T>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageResult<T> {
        private Integer pageIndex = 1; //当前页码
        private Integer pageSize = 10; //每页记录数
        private Integer totalPage;// 总页数
        private Long totalCount; // 总记录数
        private List<T> currentPageRecords;



}